<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>世系图生成 - 家族树</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="styles.css">
    <style>
        body {
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            background-color: #f8f8f8;
            color: #333;
            margin: 0;
            padding: 0;
            padding-bottom: 83px; /* 为底部导航栏留出空间 */
        }
        
        /* 状态栏样式 */
        .status-bar {
            height: 44px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid #f0f0f0;
        }
        
        /* 导航栏 */
        .nav-bar {
            height: 44px;
            display: flex;
            align-items: center;
            padding: 0 16px;
            background-color: #ffffff;
            border-bottom: 1px solid #f0f0f0;
            position: relative;
        }
        
        .back-button {
            position: absolute;
            left: 16px;
            font-size: 20px;
            color: #333;
        }
        
        .page-title {
            flex: 1;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
        }
        
        /* 底部导航栏样式 */
        .tab-bar {
            height: 83px;
            background-color: #ffffff;
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            border-top: 1px solid #f0f0f0;
            padding-bottom: 20px; /* 适配iPhone底部安全区域 */
        }
        
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #999;
            font-size: 10px;
            padding: 8px 0;
        }
        
        .tab-item.active {
            color: #e86c60; /* 主题色 */
        }
        
        .tab-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }
        
        /* 表单样式 */
        .form-section {
            background-color: white;
            margin: 16px;
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .section-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
            color: #333;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-label {
            display: block;
            font-size: 14px;
            color: #666;
            margin-bottom: 8px;
        }
        
        .form-select {
            width: 100%;
            padding: 12px;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            background-color: white;
            font-size: 14px;
            color: #333;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
        }
        
        .form-input {
            width: 100%;
            padding: 12px;
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            font-size: 14px;
            color: #333;
        }
        
        .btn-primary {
            background-color: #e86c60;
            color: white;
            border-radius: 8px;
            padding: 12px 20px;
            font-weight: 500;
            border: none;
            width: 100%;
            text-align: center;
            margin-top: 16px;
        }
        
        /* 样式选择卡片 */
        .style-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .style-card {
            border: 1px solid #e5e5e5;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
        }
        
        .style-card.selected {
            border: 2px solid #e86c60;
        }
        
        .style-card-image {
            width: 100%;
            height: 120px;
            object-fit: cover;
        }
        
        .style-card-title {
            padding: 8px;
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            background-color: rgba(255, 255, 255, 0.9);
        }
        
        .style-card-check {
            position: absolute;
            top: 8px;
            right: 8px;
            background-color: #e86c60;
            color: white;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        
        /* 预览区域 */
        .preview-section {
            background-color: white;
            margin: 16px;
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }
        
        .preview-image {
            width: 100%;
            border-radius: 8px;
            border: 1px solid #e5e5e5;
        }
    </style>
</head>
<body>
    <!-- iOS状态栏 -->
    <div class="status-bar">
        <div class="time font-medium">9:41</div>
        <div class="icons flex">
            <i class="fas fa-signal mr-1"></i>
            <i class="fas fa-wifi mr-1"></i>
            <i class="fas fa-battery-full"></i>
        </div>
    </div>
    
    <!-- 导航栏 -->
    <div class="nav-bar">
        <a href="family_tree.html" class="back-button">
            <i class="fas fa-chevron-left"></i>
        </a>
        <div class="page-title">世系图生成</div>
    </div>
    
    <!-- 主内容 -->
    <div class="pb-20 scroll-container-y">
        <!-- 表单部分 -->
        <div class="form-section">
            <div class="section-title">选择世系图体例</div>
            
            <div class="style-cards">
                <div class="style-card selected">
                    <div class="style-card-check">
                        <i class="fas fa-check"></i>
                    </div>
                    <img src="https://via.placeholder.com/150x120?text=苏式" alt="苏式世系图" class="style-card-image">
                    <div class="style-card-title">苏式（垂珠体）</div>
                </div>
                
                <div class="style-card">
                    <img src="https://via.placeholder.com/150x120?text=欧式" alt="欧式世系图" class="style-card-image">
                    <div class="style-card-title">欧式（横行体）</div>
                </div>
                
                <div class="style-card">
                    <img src="https://via.placeholder.com/150x120?text=宝塔式" alt="宝塔式世系图" class="style-card-image">
                    <div class="style-card-title">宝塔式</div>
                </div>
                
                <div class="style-card">
                    <img src="https://via.placeholder.com/150x120?text=牒记式" alt="牒记式世系图" class="style-card-image">
                    <div class="style-card-title">牒记式</div>
                </div>
            </div>
            
            <div class="form-group">
                <label class="form-label">起始世代</label>
                <select class="form-select">
                    <option>第一世代（张大山）</option>
                    <option>第二世代（张建国）</option>
                    <option>第三世代（张明）</option>
                </select>
            </div>
            
            <div class="form-group">
                <label class="form-label">结束世代</label>
                <select class="form-select">
                    <option>第四世代（张小明）</option>
                    <option>第三世代（张明）</option>
                    <option>第二世代（张建国）</option>
                </select>
            </div>
            
            <div class="form-group">
                <label class="form-label">包含信息</label>
                <div class="flex items-center mb-2">
                    <input type="checkbox" id="include_birth" checked class="mr-2">
                    <label for="include_birth" class="text-sm">出生日期</label>
                </div>
                <div class="flex items-center mb-2">
                    <input type="checkbox" id="include_death" checked class="mr-2">
                    <label for="include_death" class="text-sm">去世日期</label>
                </div>
                <div class="flex items-center mb-2">
                    <input type="checkbox" id="include_photo" checked class="mr-2">
                    <label for="include_photo" class="text-sm">照片</label>
                </div>
                <div class="flex items-center mb-2">
                    <input type="checkbox" id="include_occupation" class="mr-2">
                    <label for="include_occupation" class="text-sm">职业</label>
                </div>
                <div class="flex items-center">
                    <input type="checkbox" id="include_education" class="mr-2">
                    <label for="include_education" class="text-sm">学历</label>
                </div>
            </div>
            
            <div class="form-group">
                <label class="form-label">纸张大小</label>
                <select class="form-select">
                    <option>A4 (210 × 297 mm)</option>
                    <option>A3 (297 × 420 mm)</option>
                    <option>A2 (420 × 594 mm)</option>
                    <option>自定义</option>
                </select>
            </div>
            
            <button class="btn-primary">生成世系图</button>
        </div>
        
        <!-- 预览部分 -->
        <div class="preview-section">
            <div class="section-title">预览</div>
            <img src="https://via.placeholder.com/350x500?text=世系图预览" alt="世系图预览" class="preview-image">
            
            <div class="flex justify-between mt-4">
                <button class="px-4 py-2 bg-gray-200 rounded-lg text-gray-700 flex items-center">
                    <i class="fas fa-eye mr-2"></i>
                    <span>查看全图</span>
                </button>
                
                <button class="px-4 py-2 bg-gray-200 rounded-lg text-gray-700 flex items-center">
                    <i class="fas fa-file-pdf mr-2"></i>
                    <span>导出PDF</span>
                </button>
            </div>
        </div>
    </div>
    
    <!-- 底部导航栏 -->
    <div class="tab-bar">
        <a href="home.html" class="tab-item">
            <i class="tab-icon fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="family_tree.html" class="tab-item active">
            <i class="tab-icon fas fa-sitemap"></i>
            <span>家谱</span>
        </a>
        <a href="family_activity.html" class="tab-item">
            <i class="tab-icon fas fa-calendar-alt"></i>
            <span>活动</span>
        </a>
        <a href="family_stories.html" class="tab-item">
            <i class="tab-icon fas fa-book"></i>
            <span>故事</span>
        </a>
        <a href="profile.html" class="tab-item">
            <i class="tab-icon fas fa-user"></i>
            <span>我的</span>
        </a>
    </div>
</body>
</html> 